POV-Ray : Newsgroups : povray.advanced-users : vector.x is a float, isn't it? : Re: vector.x is a float, isn't it? Server Time
3 Jul 2024 05:12:45 EDT (-0400)
  Re: vector.x is a float, isn't it?  
From: slehar
Date: 14 Jul 2008 08:20:01
Message: <web.487b4422d340be7bf75a90cb0@news.povray.org>
"Chris B" <nom### [at] nomailcom> wrote:
> "slehar" <sle### [at] gmailcom> wrote in message
> news:web.487a73ecc7f877ecf75a90cb0@news.povray.org...
>
> #declare myVector = <1,2>;
> #debug concat("myAngle: ", str(atan2(myVector.y,myVector.x),3,3),"\n")
>
> writes "myAngle: 1.107" into the message stream for me on 3.6 under Windows.
> What version are you running?
>
> Regards,
> Chris B.

Wow, thats bizarre! That code works for me too! But when I put the atan2( ) in
the density function where I need it, it doesn't work!

I'm running version 3.6.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.